package com.flashcash.solu.view.certification;

import android.view.View;
import android.widget.TextView;

import com.flashcash.solu.R;
import com.flashcash.solu.app.base.BaseActivity;
import com.flashcash.solu.view.me.presenter.ExampleActPreImp;
import com.flashcash.solu.view.me.presenter.ExampleActPresenter;


public class ExampleActivity extends BaseActivity<ExampleActPresenter> {

    public static final int EXAMPLE_RESULT_CODE = 601;

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_example;
    }

    @Override
    protected void init() {
        findViewById(R.id.id_imagebutton_back).setOnClickListener(v -> {
            finish();
        });
        ((TextView) findViewById(R.id.id_textview_title)).setText("Example");
        findViewById(R.id.id_imagebutton_info_list).setVisibility(View.INVISIBLE);
        findViewById(R.id.btn_ok).setOnClickListener(v -> {
            setResult(EXAMPLE_RESULT_CODE);
            finish();
        });
    }

    @Override
    protected ExampleActPresenter initPresenterImpl() {
        return new ExampleActPreImp();
    }

}
